package com.firefoxking.mysite.constant;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class WebConst {

    /**
     * 一些网站配置
     */
    public static Map<String, String> initConfig = new HashMap<>();

    /**
     * 最大页码
     */
    public static final int MAX_PAGE = 100;

    /**
     * 点击次数超过多少更新到数据库
     */
    public static final int HIT_EXCEED = 1;

    /**
     * Cookie的key user id
     */
    public static final String USER_IN_COOKIE = "S_L_ID";

    /**
     * 默认状态的登录凭证的超时时间
     */
    public static int DEFAULT_EXPIRED_SECONDS = 3600 * 12;

    /**
     * 记住状态的登录凭证超时时间
     */
    public static int REMEMBER_EXPIRED_SECONDS = 3600 * 24 * 100;

    /**
     * aes加密加盐
     */
    public static String AES_SALT = "0123456789abcdef";
}
